package sample.components
{
	import sample.viewassets.ARadioGroupItem;
	import asf.interfaces.IRadioGroupItem;

	public class RadioButton extends ARadioGroupItem implements IRadioGroupItem
	{
		private var value:*;
		
		public function RadioButton( )
		{
			super( );
			this.$bullet.visible = false;
			mouseChildren = false;
		}
		
		public function dispose( ):void
		{
		}
		
		public function setChecked(value:Boolean):void
		{
			this.$bullet.visible = value;
		}
		
		public function getValue():*
		{
			return this.value;
		}
		
		public function setValue(value:*):void
		{
			ctrace( value );
			this.value = value; 
		}
		
		public function getChecked():Boolean
		{
			return this.$bullet.visible;
		}
		
		public function clearValue():void
		{
		}
		
		public function focus():void
		{
		}
		
		public function blur():void
		{
		}
		
		public function setWidth(value:Number):void
		{
		}
		
		public function setHeight(value:Number):void
		{
		}
		
		public function getWidth():Number
		{
			return 0;
		}
		
		public function getHeight():Number
		{
			return 0;
		}
		
		public function setTabIndex(value:int):void
		{
		}
		
		public function getTabIndex():int
		{
			return 0;
		}
		
		public function enable():void
		{
			mouseEnabled = true;
		}
		
		public function disable():void
		{
			mouseEnabled = false;
		}
		
		public function isValid():Boolean
		{
			return true;
		}
		
		public function isEmpty():Boolean
		{
			return getChecked( );
		}
		
		public function markError(message:String):void
		{
		}
		
		public function clearError( ):void
		{
		}
		
	}
}